<link rel="stylesheet" type="text/css" href="/assets/css/tableform.css?v=1">
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

	<div class="widget-body no-padding" style="position: relative;z-index:1;">
		<div id="toolbar" class="toolbar">
			<button type="button" class="btn btn-primary btn-embossed btn-close"
				onclick="Fast.api.close()">{:__('Close')}</button>
			<button type="button" class="btn btn-success btn-print btn-embossed">
				<i class="fa fa-print"></i> 打印
			</button>
		</div>
	</div>

<div class="printshow">
	<div class="form-group" style="height:80px">
		<h2 class="text-center">入库任务清单</h2>
		<div class="col-sm-12 text-right" style="z-index:0;position: fixed;top:0px">
			<img style="height:120px;width:120px;" src="{$row.qrcode}" />
		</div>
	</div>

    <div class="form-group">
     <label class="control-label col-sm-2">订单编号:</label>
     <div class="h5 col-sm-2">
        {$row.cPOID|htmlentities}
    </div>
    <label class="control-label col-sm-2">单据日期:</label>
	<div class="h5 col-sm-2" >
    	{:substr($row.dPODate,0,10)}
	</div>
	<label class="control-label col-sm-2">单据类型:</label>
	<div class="h5 col-sm-2" >
    	{$row.cPTName|htmlentities}
	</div>
	
  </div>
  
  
  <div class="form-group">
    <label class="control-label col-sm-2">供应商:</label>
	<div class="h5 col-sm-2">
        {$row.cVenName|htmlentities}
	</div>
	<label class="control-label col-sm-2">部门名称:</label>
     <div class="h5 col-sm-2">
        {$row.cDepName|htmlentities}
    </div>
  </div>


  <div style="overflow-x: auto;width:99%">
    <table class="table fieldlist " data-template="basictpl" id="free-programme-item-table" data-name="row[basic]">
      <tr class="table-bordered">
      	<td class="text-center table-bordered" width="120">{:__('建议路径')}</td>
        <td class="text-center table-bordered" width="120">{:__('最新路径')}</td>
        <td class="text-center table-bordered" width="100">{:__('物料编码')}</td>
        <td class="text-center table-bordered" width="150">{:__('物料名称')}</td>
        <td class="text-center table-bordered" width="100">{:__('规格')}</td>
        <td class="text-center table-bordered" width="60">{:__('数量')}</td>
        <td class="text-center table-bordered" width="80">{:__('剩余数量')}</td>
        <td class="text-center table-bordered" width="60">{:__('单位')}</td>
      </tr>
    </table>
  </div>
 </div>
  <textarea name="row[basic]" id="c-basic-textarea" class="form-control hidden" cols="30" rows="5">{$list_json}</textarea>
  <script id="basictpl" type="text/html">
    <tr class="table-bordered">
      <td class="text-center table-bordered" width="120"><%=value?value['wname']:''%> - <%=value?value['tj_shelves_name']:''%></td>
	  <td class="text-center table-bordered" width="120"><%=value?value['lastest_warehouse_name']:''%> - <%=value?value['lastest_shelves_name']:''%></td>
      <td class="text-center table-bordered"><%=value?value['inventory_number']:''%></td>
      <td class="text-center table-bordered"><%=value?value['name']:''%></td>
	  <td class="text-center table-bordered"><%=value?value['specification']:''%></td>
      <td class="text-center table-bordered"><%=value?value['quantity']:''%></td>
      <td class="text-center table-bordered"><%=value?value['quantity']-value['warehousing_quantity']:''%></td>
	  <td class="text-center table-bordered"><%=value?value['unit']:''%></td>
    </tr>
  </script>
</form>
<style>
	.printshow {
		font-family: "Microsoft YaHei", 微软雅黑;
	}


	.printshow table {
		/* border: 2.5px solid black; */
		border:1.5px solid black;
		border-collapse: collapse;
	}
	
	.remark {
		font-size:15px;
		word-wrap:break-word; 
    	word-break:break-all;
		overflow-x: auto;
	}

	@media print {
		.printshow .tds {
			/* font-size: 50px; */
			border-bottom: 1.1px solid black;
			border-right: 1.1px solid black;
		}
	}

	@page {
		size: auto;
		margin: 3mm;
	}
</style>